<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="font/css/font-awesome.min.css" />
		<script src="js/jquery-1.9.1.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>           	
		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
        <script src="assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="assets/laydate/laydate.js" type="text/javascript"></script>
<title>历史订单</title>
</head>

<body>
<div class="margin clearfix">
 <div class="" id="Other_Management">
 <div class="search_style">
      <div class="title_names">搜索查询</div>
      <ul class="search_content clearfix">
       <li><label class="l_f">订单搜索</label><input name="" type="text" class="text_add" placeholder="输入搜索条件" style=" width:400px"></li>
       <li style="width:90px;"><button type="button" class="btn_search"><i class="fa fa-search"></i>查询</button></li>
      </ul>
    </div>
    <div class="border clearfix">
       <span class="l_f">
        <a href="javascript:ovid()" class="btn btn-sm btn-primary">
        <i class="fa fa-check"></i>&nbsp;已完成订单</a>
        <a href="javascript:ovid()" class="btn btn-yellow">
        <i class="fa fa-times"></i>&nbsp;未完成订单</a>
        <a href="javascript:ovid()" class="btn btn-danger">
        <i class="fa fa-trash"></i>&nbsp;批量删除</a>
       </span>
       <span class="r_f">共：<b>2345</b>条</span>
     </div>
     <div class="list_style">
     <table class="table table-striped table-bordered table-hover" id="sample-table">
     <thead>
		 <tr>
				<th width="25"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
				<th width="80">订单编号</th>
				<th width="100">订单状态</th>
				<th width="100">预约电话</th>
				<th width="80">预约地址</th>
				<th width="120">开始时间</th>   
                <th width="120">结束时间</th>
                <th width="120">维修金额</th>
                <th width="120">详细信息</th>              
				<th width="250">操作</th>
			</tr>
		</thead>
	<tbody>
        <tr>
        <td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
        <td>000001</td>
        <td>已完成</td>
        <td>18393947759</td>
        <td>青岛市城阳区某个街道某个小区某号楼某单元某0某</td>
        
        <td>2021-6-11 11:11:42</td>
        <td>2021-6-11 11:11:42</td>
        <td><a href="javascript:ovid()" onclick="Order_history('4')">￥200</a></td>
        <td><a href="javascript:ovid()" onclick="Order_history('7')">详细信息</a></td>
        
        <td> <a title="删除" href="javascript:;"  onclick="member_del(this,'5')" class="btn btn-xs btn-warning" ><i class="fa fa-trash  bigger-120"></i></a></td>
        </tr>
        </tbody>    
     </table>     
     </div>
     
 </div>
</div>


<!--详细记录-->
<div id="Order_history" style="display:none; padding:10px;">

<table class="table table-striped table-bordered table-hover" id="Order_history_list" width="100%">
     <thead>
		 <tr>
				<th width="80">待定</th>
				<th width="100">待定</th>
				<th width="80">待定</th>
				<th width="120">待定</th>   
                <th width="120">待定</th>              
			</tr>
		</thead>
	<tbody>
        <tr>
        <td>待定</td>
        <td>待定</td>
        <td>待定</td>
        <td>待定</td>
        <td>待定</td>
        </tr>
        </tbody>    
     </table>     
</div>


</body>
</html>


<script>
jQuery(function($) {
				var oTable1 = $('#sample-table').dataTable( {
				"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[0,2,3,6]}// 制定列不参与排序
		] } );
				
				
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			});
			


/*用户-删除*/
function member_del(obj,id){
	layer.confirm('确认要删除吗？',function(index){
		$(obj).parents("tr").remove();
		layer.msg('已删除!',{icon:1,time:1000});
	});
}

//详细记录
function Order_history(id){
	layer.open({
    type: 1,
	title:'详细记录',
	area: ['800px','400px'],
	shadeClose: true,
	content: $('#Order_history'),
	});	
		$('#Order_history_list').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
    "bStateSave": true,//状态保存
    "aoColumnDefs": [{
	  "bSortable": false, 
	  "orderable":false, 
	  "aTargets": [0,1]
	 }]
});		
}


</script>
